package com.ict.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ict.web.domain.Performance;
import com.ict.web.domain.PerformanceRule;
import com.ict.web.dto.QueryPerformanceDto;
import com.ict.web.vo.PerformanceRuleVo;
import com.ict.web.vo.PerformanceRuleVo;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 绩效规则 Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-15
 */
@Mapper
public interface PerformanceRuleMapper extends BaseMapper<PerformanceRule>
{
    /**
     * 查询指标规则列表
     * @return
     */
    public List<PerformanceRule> selectPerformanceRuleList();
    /**
     * 逻辑删除
     * @param ruleId
     * @return
     */
    public int deletePerformanceRuleByRuleId(Long ruleId);

    /**
     * 根据指标id查询规则列表
     * @param indicatorsId
     * @return
     */
    public List<PerformanceRule> selectPerformanceRuleListByIndicatorsId(Long indicatorsId);
}
